export function serializing<T>(arg: T): String {
  return encodeURIComponent(JSON.stringify(arg))
}

export function deserialize(str: string): string {
  return decodeURIComponent(str)
}